import { Inject, Injectable } from '@nestjs/common';
import { CreateArticleLikeDto } from './dto/create-article-like.dto';
import { PrismaService } from 'src/prisma.service';

@Injectable()
export class ArticleLikeService {
  @Inject()
  prismaService: PrismaService;
  create(createArticleLikeDto: CreateArticleLikeDto, userId: number) {
    return this.prismaService.articleLike.create({
      data: {
        ...createArticleLikeDto,
        userId,
      },
    });
  }
}
